import axios from "axios";
import ApiConfigRequest from "api-config-request";

const config = {
  multiServer: true,
  defaultPath: "/api/",
  apis: {
    graph: {
      getProjectList:"POST graph/project/list",
      getProject: "GET graph/project/{id}",
      saveProject:"POST graph/project/save/{type}",
      deleteContext:"DELETE graph/project/context/{id}",
      exportZip:{url:'GET graph/project/export/zip/{id}', responseType: "blob"},
      uploadFile:{
        url:'POST graph/project/upload',
        'Content-type' : 'multipart/form-data'

      }
    },
  },
};
const apis = ApiConfigRequest.getInstance()
  .setRequests(axios)
  .setApiConfig(config);
export default apis;
